const express = require("express");
const router = express.Router();
const dictItemService = require("./service/DictItemServiceImpl");

// 新增
router.post("/saveOrUpdate", (req, res, next) => {
  dictItemService.saveOrUpdate(req, res, next);
});

// 删除
router.post("/batchDelete", (req, res, next) => {
  dictItemService.batchDelete(req, res, next);
});

// 更改状态
router.post("/changeStatus", (req, res, next) => {
  dictItemService.changeStatus(req, res, next);
});

module.exports = router;
